package com.xcf.service.business.common.shippingspacecost.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.shippingspacecost.ShippingSpaceCostService;
import com.xcf.util.PageData;
@Service("ShippingSpaceCostServiceImpl")
public class ShippingSpaceCostServiceImpl implements ShippingSpaceCostService{
	@Resource(name="daoSupport")
	private  DaoSupport daosuport;

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> seach(PageData pd) throws Exception {
		
		return (List<PageData>) daosuport.findForList("ShippingSpaceCostMapper.seach", pd);
	}
	
	//保存
		@Override
		public void addCCA(PageData pd) {
			
			try {
				daosuport.save("ShippingSpaceCostMapper.save", pd);
			} catch (Exception e) {
				
				e.printStackTrace();
			}
		}

	
	 
		//修改页面的保存
		@Override
		public void updateCCA(PageData pd) {
			try {
				daosuport.update("ShippingSpaceCostMapper.editU", pd);
			} catch (Exception e) {
				
				e.printStackTrace();
			}
			
		}

		//删除
		@Override
		public void delete(PageData pd) {
			try {
				daosuport.delete("ShippingSpaceCostMapper.deleteU", pd);
			} catch (Exception e) {
				
				e.printStackTrace();
			}
			
		}

		@Override
		public void updateInfo(PageData pd) throws Exception {
			daosuport.update("ShippingSpaceCostMapper.updateInfo", pd);
			
		}

	

		@Override
		public List<PageData> sear(PageData pd) throws Exception{
			
			return (List<PageData>) daosuport.findForList("ShippingSpaceCostMapper.sear", pd);
			
		}

		@Override
		public void update(PageData pd) throws Exception {
			daosuport.update("ShippingSpaceCostMapper.update", pd);
		}

}
